<form id="add-form" class="form-horizontal" method="POST" action="{:url('ssave')}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应用部署名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="name" value="{$data['name']|default=''}" class="form-control"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应用语言选择:</label>
        <div class="col-xs-12 col-sm-8">
            {volist name="tech" id="vo"}
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 2px;" name="tech_id[]" {if condition="(!empty($data)) AND in_array($vo['id'],$data['tech_id'])"}checked{/if} value="{$vo.id}" type="checkbox">{$vo.name}</label>
            {/volist}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">周期（小时）:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="cycle" value="{$data['cycle']|default=''}" class="form-control"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应用部署描述:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea type="text" class="form-control" name="des">{$data['des']|default=''}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="id" value="{$data['id']|default=''}" class="form-control"/>
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>